package com.java.tutorials.jdk7.files;
import com.java.tutorials.Constants;

import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
/**
 * Created by xuzhike on 2016/1/26.
 * http://www.java2s.com/Code/Java/JDK-7/GetfilelastmodifiedtimeforapathobjectbyusingFilesclass.htm
 * Get file last modified time for a path object by using Files class
 */
public class FileGetLastModifiedTime {
    public static void main(String[] args) throws Exception {
        Path zip = Paths.get(Constants.TEST_FILE_WITH_PATH);

        System.out.println(Files.getLastModifiedTime(zip));
    }
}
